package com.alks.function.mapper.stockdept.pcfactorystockquery;

import com.alks.entity.data.entity.MpPurDis;
import com.alks.entity.data.entity.MpPurMtlLot;
import com.alks.function.data.dto.procurement.PurchaseOrderDto;
import com.alks.function.data.request.procurement.LotNoRequest6;
import com.alks.function.data.request.procurement.LotNoRequest7;
import com.alks.function.data.request.stockdept.pcfactorystockwork.MyOrdUpRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-11-18
 */
public interface SD_SQ_MpPurMtlLotMapper extends BaseMapper<MpPurMtlLot> {

    /*形成订购单写入数据*/
    void creatPurUpdate(@Param("request") List<MyOrdUpRequest> request);
    int creatPurUpdate1(@Param("request") List<MyOrdUpRequest> request);

    /*删除：材料指令订购单 MP_PUR_MTL_LOT*/
    int deletePur(LotNoRequest6 request);

    /*更新：材料指令订购单数量 MP_PUR_MTL_LOT*/
    int updateNumPur(LotNoRequest7 request);

    /*批量删除：材料指令订购单 MP_PUR_MTL_LOT*/
    int deletePurBatch(List<LotNoRequest6> list, String companyId);

    /*修改：材料指令订购单 MP_PUR_MTL_LOT*/
    int updatePur(PurchaseOrderDto dto);

    /**
     * 贴合退库
     */
    void purBack(@Param("dis") MpPurDis dis);
}
